package main

import (
	"fmt"
	lib "im/libs"
)

func handle(t *(lib.Task)){
	t.Client.Write([]byte("Hello"))
	fmt.Println("from", t.Client.RemoteAddr())
	defer t.Client.Close()
}

func main() {
	s,_:= lib.NewServer("127.0.0.1",1000,10,handle)
	s.Start()
}
